<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="
				 java.util.*,
				 com.kylin.module.shop.orm.*,
                 com.kylin.common.util.*,
				 com.kylin.common.dict.orm.Dict,
                 com.kylin.common.paginate.DisplayPage,
			     com.kylin.module.user.orm.*" %>
<%@ include file="/common/include/taglibs.jsp"%>
<%@ include file="../_deco/managetop.jsp"%>

<br>
<table class="tl050804" cellspacing="0" cellpadding="0">
  <tr>
    <td width="280"  align="center" valign="top">
			<%@ include file="../_deco/manageLeft.jsp"%>
		</td>
		<td align="left" valign="top">
<%
////////////////////右侧 内容区  /////////////////////// start
%>			
<form name="contentForm" action="/module/shop/company/manageContent.do?CMD=add" method="post" onsubmit="return checkForm(this);">
<table width="92%" cellspacing="0" cellpadding="0">
      <tr>
        <td height="30" class="ms02">&nbsp;&nbsp;<bean:message key="company.46"/></td>
        <td align="right">欢迎</td>
      </tr>
	   <tr>
              <td colspan="2" bgcolor="CDCDCD" height="1"></td>
             
	   </tr>
    </table>
      <br>
	  <form name="contentForm" action="/module/shop/company/manageContent.do?CMD=add" method="post">
<mytag:MyActionMsg />
      <table width="90%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><bean:message key="company.47"/>：</td>
          <td align="left">
             <input name="type" type="radio" value="<%=Content.TYPE_SELL%>" checked><bean:message key="company.48"/>
             <input name="type" type="radio" value="<%=Content.TYPE_BUY%>"><bean:message key="company.49"/>
           </td>
        </tr>
        <tr>
          <td><bean:message key="company.50"/>：</td>
          <td align="left"><input class="input01" name="title" type="text" size="40" check="^\S+$" warning="请输入主题"><font color="red">*</font>
              <br><bean:message key="company.74"/> 
          </td>
        </tr>
        <tr>
          <td><bean:message key="company.51"/>：</td>
          <td align="left"><textarea name="content" cols="38" rows="8" check="^\S+$" warning="请对产品进行简单的描述"></textarea>
          	<font color="red">*</font>
          </td>
        </tr>
        <tr>
          <td width="123"><bean:message key="base.63"/>：</td>
          <td width="377" align="left">
            <input class="input01" name="quantity" type="text" size="10" check="^\S+$"warning="请输入产品数量">
              <bean:message key="company.75"/><mytag:select name="unit" dictName="计量单位"/>
              <font color="red">*</font>
          </td>
        </tr>
        <tr>
          <td><bean:message key="leads.06"/>：</td>
          <td align="left"><input class="input01" name="ppackage" type="text" size="26"></td>
        </tr>
        <tr>
          <td><bean:message key="leads.07"/>：</td>
          <td align="left"><input class="input01" name="price" type="text" size="10" check="^\S+$"warning="请输入价格">
            <bean:message key="company.76"/><mytag:select name="currency" dictName="币种"/><font color="red">*</font>
          </td>
        </tr>
        <tr>
          <td><bean:message key="base.26"/>：</td>
          <td align="left"><input class="input01" name="contact" type="text" size="26" check="^\S+$"warning="请输入产品价格"><font color="red">*</font></td>
        </tr>
        <tr>
          <td><bean:message key="base.05"/>：</td>
          <td align="left"><input class="input01" name="phoneCountry" type="text" size="10" check="^\d+$"warning="请输入正确的电话信息">
            -
            <input class="input01" name="phoneArea" type="text" size="10" check="^\d+$"warning="请输入正确的电话信息">
            -
            <input class="input01" name="phone" type="text" size="10" check="^\d+$"warning="请输入正确的电话信息">
            <font color="red">*</font>
          </td>
        </tr>
        <tr>
          <td><bean:message key="base.06"/>：</td>
          <td align="left"><input class="input01" name="faxCountry" type="text" size="10">
            -
            <input class="input01" name="faxArea" type="text" size="10">
            -
            <input class="input01" name="fax" type="text" size="10">
          </td>
        </tr>
        <tr>
          <td><bean:message key="base.07"/>：</td>
          <td align="left"><input class="input01" name="email" type="text" size="26" check="^\w+@\w+(\.\w+)+(\,\w+@\w+(\.\w+)+)*$" warning="请输入正确的邮件地址"><font color="red">*</font></td>
        </tr>
        <tr>
          <td><bean:message key="company.52"/>：</td>
          <td align="left">
<script>
function isParentCat(theSelect){
	for (var i = 0; i < theSelect.length; i++) {
		if (theSelect.options[i].selected == true 
			&& theSelect.options[i].pid =="") {
			return true;
		}
	}
	return false;
}
</script>
         <% 
            //构造 产品类别下拉菜单
    	    List maincatproduct = MemObjFactory.getDict("产品类别",sessionLocale.toString());
            boolean disableSelectParent = true; 
            out.println(JspHelper.getCatProductSelect(maincatproduct,"contentForm",disableSelectParent));
        %>
              
              </td>
        </tr>
        <tr>
          <td><bean:message key="base.68"/>：</td>
          <td align="left">
			  <mytag:CalendarInput name="duedate" id="duedate" imgId="duedate_img" />
          </td>
        </tr>
        <tr align="center">
          <td height="50" colspan="2"><input type="submit" name="Submit" value="<bean:message key="company.53"/>"></td>
        </tr>
      </table>
</form>      
<%
////////////////////右侧 内容区  /////////////////////// end
%>		
		</td>
	</tr>
</table>

